function apply(func, obj, args) {
    if (obj === null || obj === undefined) {
        return globalThis
    }
    obj.temp = func
    let res = obj.temp(...args)
    return res
}